<T:ViewBase x:Class="WPFExcelReport.TVDTPLAN02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTLO:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTLO}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTVART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTVART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTSPED:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTSPED}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTJJJJ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTJJJJ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTMM:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTMM}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTTAG01:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTTAG01}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTTAG02:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTTAG02}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTTAG03:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTTAG03}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTTAG04:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTTAG04}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VDTTAG05:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVDTPLAN.VDTTAG05}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsVDTPLAN,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwVDTPLAN}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwVDTPLAN, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="VDTMANDANT"
                                    Binding="{Binding Path=VDTMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTLO"
                                    Binding="{Binding Path=VDTLO, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTLO}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTVART"
                                    Binding="{Binding Path=VDTVART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTVART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTSPED"
                                    Binding="{Binding Path=VDTSPED, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTSPED}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTJJJJ"
                                    Binding="{Binding Path=VDTJJJJ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTJJJJ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTMM"
                                    Binding="{Binding Path=VDTMM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTMM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG01"
                                    Binding="{Binding Path=VDTTAG01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG02"
                                    Binding="{Binding Path=VDTTAG02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG03"
                                    Binding="{Binding Path=VDTTAG03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG04"
                                    Binding="{Binding Path=VDTTAG04, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG04}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG05"
                                    Binding="{Binding Path=VDTTAG05, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG05}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG06"
                                    Binding="{Binding Path=VDTTAG06, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG06}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG07"
                                    Binding="{Binding Path=VDTTAG07, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG07}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG08"
                                    Binding="{Binding Path=VDTTAG08, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG08}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG09"
                                    Binding="{Binding Path=VDTTAG09, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG09}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG10"
                                    Binding="{Binding Path=VDTTAG10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG11"
                                    Binding="{Binding Path=VDTTAG11, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG11}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG12"
                                    Binding="{Binding Path=VDTTAG12, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG12}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG13"
                                    Binding="{Binding Path=VDTTAG13, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG13}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG14"
                                    Binding="{Binding Path=VDTTAG14, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG14}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG15"
                                    Binding="{Binding Path=VDTTAG15, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG15}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG16"
                                    Binding="{Binding Path=VDTTAG16, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG16}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG17"
                                    Binding="{Binding Path=VDTTAG17, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG17}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG18"
                                    Binding="{Binding Path=VDTTAG18, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG18}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG19"
                                    Binding="{Binding Path=VDTTAG19, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG19}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG20"
                                    Binding="{Binding Path=VDTTAG20, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG20}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG21"
                                    Binding="{Binding Path=VDTTAG21, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG21}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG22"
                                    Binding="{Binding Path=VDTTAG22, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG22}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG23"
                                    Binding="{Binding Path=VDTTAG23, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG23}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG24"
                                    Binding="{Binding Path=VDTTAG24, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG24}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG25"
                                    Binding="{Binding Path=VDTTAG25, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG25}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG26"
                                    Binding="{Binding Path=VDTTAG26, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG26}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG27"
                                    Binding="{Binding Path=VDTTAG27, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG27}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG28"
                                    Binding="{Binding Path=VDTTAG28, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG28}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG29"
                                    Binding="{Binding Path=VDTTAG29, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG29}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG30"
                                    Binding="{Binding Path=VDTTAG30, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG30}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTTAG31"
                                    Binding="{Binding Path=VDTTAG31, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTTAG31}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTANZTAG"
                                    Binding="{Binding Path=VDTANZTAG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTANZTAG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTVERSATZ"
                                    Binding="{Binding Path=VDTVERSATZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTVERSATZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTFILLER"
                                    Binding="{Binding Path=VDTFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTAENZL"
                                    Binding="{Binding Path=VDTAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTAENB"
                                    Binding="{Binding Path=VDTAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTAEND"
                                    Binding="{Binding Path=VDTAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTNEUB"
                                    Binding="{Binding Path=VDTNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VDTNEUD"
                                    Binding="{Binding Path=VDTNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VDTNEUD}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
